<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddForum.ascx.cs" Inherits="forums_controls_administration_AddForum" %>
<%@ Register Src="../forums/ForumListBox.ascx" TagName="ForumListBox" TagPrefix="uc1" %>
<h2>Create A New Forum</h2>
<asp:Literal runat="server" ID="lblSuccess" Visible="false" EnableViewState="false" Text="[success message]" />
<p>
    Parent Forum:<br />
    <uc1:ForumListBox id="ddlRoot" runat="server" RootItemText="(root)">
    </uc1:ForumListBox>
    </p>
<p>
    Forum Name:<br />
    <asp:TextBox runat="server" ID="txtName" ValidationGroup="AddForum" />
    <asp:RequiredFieldValidator ID="valFolderNameRequired" runat="server" ControlToValidate="txtName"
        ErrorMessage="This is a required field, asshole." ValidationGroup="AddForum" EnableClientScript="False"></asp:RequiredFieldValidator></p>
<p>
    Description:<br />
    <asp:TextBox runat="server" ID="txtDescription"
        TextMode="multiLine" Columns="60" Rows="4"/>
</p>
<p>
    Visibility:<br />
    <asp:DropDownList ID="ddlVisibility" runat="server">
        <asp:ListItem Value="0">All Users</asp:ListItem>
        <asp:ListItem Value="0">Registered Users</asp:ListItem>
        <asp:ListItem Value="2">Moderators</asp:ListItem>
        <asp:ListItem Value="3">Super Moderators</asp:ListItem>
        <asp:ListItem Value="4">Administrators</asp:ListItem>
    </asp:DropDownList>
</p>
<p>
    <asp:Button runat="server" ID="btnAdd"
        Text="Create New Forum" OnClick="btnAdd_Click" ValidationGroup="AddForum" />
</p>